package com.mxpio.erp.common.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum BizExceptionEnums {
    SERVER_ERROR("系统异常","ERP-500"),
    PARAM_NOT_EMPTY("%s参数不能为空","ERP-10000"),
    PARAM_NOT_NULL("参数不能为NULL","ERP-10001"),
    ORDER_NOT_FOUND("工单不存在","ERP-10002" ),
    ORDER_AUDITING("工单正在审核中,请勿重复提交", "ERP-10003"),
    ORDER_CLOSED_OR_FINISH("工单已关闭或已完成,请勿重复提交", "ERP-10004"),
    ORDER_SUBMIT_STATUS_ERROR("工单新增状态才允许提交审核", "ERP-10005"),
    ORDER_AUDIT_STATUS_ERROR("工单审批状态错误,只允许通过或驳回", "ERP-10005"),
    ORDER_UNABLE_UPDATE_BY_STATUS("工单状态%s,不允许被修改","ERP-10005"),
    ORDER_UNABLE_DELETE_BY_STATUS("工单单状态%s,不允许被删除","ERP-10006"),
    ORDER_UNABLE_AUDIT_BY_STATUS("工单状态%s,不允许被审批","ERP-10007"),
    ALLOW_SUBMIT_ONE("不允许多次提交","ERP-10008"),
    EMPLOYEE_SALARY_NOT_COMPUTE("%s薪资还未测算,不允许结账","ERP-10009"),
    EMPLOYEE_SALARY_IS_FINISH("%s薪资已结账,不允许重复操作","ERP-10010"),
    EMPLOYEE_SALARY_IS_FINISH_NOT_COMPUTE("%s薪资已结账,无法继续生成","ERP-10011"),
    EXPECT_ORDER_NOT_FOUND_REPORT("未找到该物料%s对应的报价单","ERP-10013"),
    EXPECT_ORDER_NOT_FOUND("未找到报价单","ERP-10014"),
    EXPECT_ORDER_NOT_FOUND_MIN_REPORT("未找到该物料%s对应的最低价报价单","ERP-10015"),
    ;

    private String msg;
    private String code;
}
